<!DOCTYPE html>
<!--[if IEMobile 7 ]><html class="no-js iem7"><![endif]-->
<!--[if lt IE 9]><html class="no-js lte-ie8"><![endif]-->
<!--[if (gt IE 8)|(gt IEMobile 7)|!(IEMobile)|!(IE)]><!--><html class="no-js" lang="en"><!--<![endif]-->
<head>
  <meta charset="utf-8">
  <title>cat writebug.cn/history</title>
  <meta name="author" content="zhiliao">
  <meta name="description" content="writebug博客网，一个开发者的技术博客。" />

  <meta name="keywords" content="开发者,程序,博客园,程序猿,程序媛,极客,码农,编程,代码,软件开发,开源,IT网站,技术社区,Developer,Programmer,Coder,Geek,Coding,Code,writebug,bug,写bug,linux,vim,编程语言,调试" />

  <link href="/feeds/all.atom.xml" type="application/rss+xml" rel="alternate"
        title="cat writebug.cn/history RSS Feed" />



  <!-- http://t.co/dKP3o1e -->
  <meta name="HandheldFriendly" content="True">
  <meta name="MobileOptimized" content="320">
  <meta name="viewport" content="width=device-width, initial-scale=1">


    <link href="/favicon.png" rel="icon">

  <link href="/theme/css/main.css" media="screen, projection"
        rel="stylesheet" type="text/css">
  <link href="/theme/css/pygment.css" rel="stylesheet" type="text/css">

  <!--
  <link href="//fonts.googleapis.com/css?family=PT+Serif:regular,italic,bold,bolditalic"
        rel="stylesheet" type="text/css">
  <link href="//fonts.googleapis.com/css?family=PT+Sans:regular,italic,bold,bolditalic"
        rel="stylesheet" type="text/css">
  -->


  <script src="/theme/js/modernizr-2.0.js"></script>
  <script src="/theme/js/ender.js"></script>
  <script src="/theme/js/octopress.js" type="text/javascript"></script>
</head>

<body >
  <header role="banner"
  >
<hgroup>
  <h1><a href="/">cat writebug.cn/history</a></h1>
    <h2>一个开发者的技术博客。</h2>
</hgroup></header>
  <nav role="navigation"><ul class="subscription" data-subscription="rss">
  <li><a href="/feeds/all.atom.xml" rel="subscribe-rss">RSS</a></li>
</ul>


<ul class="main-navigation">
    <li><a href="/">Home</a></li>
    <li><a href="/archives.html">Archive</a></li>
    <li><a href="/pages/todolist.html">TodoList</a></li>
    <li><a href="/pages/about.html">About</a></li>
</ul></nav>
  <div id="main">
    <div id="content">
<div class="blog-index">
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2021/08/01/capture.html">linux平台下的抓包方案</a>
      </h1>
    <p class="meta">
<time datetime="2021-08-01T14:47:08+08:00" pubdate>2021-08-01 14:47:08</time>      
    </p>
</header>

        <div class="entry-content"><h4>linux平台下的抓包方案</h4>
<ul>
<li>libpcap <code>wireshark tcpdump均基于此。</code></li>
<li>PF_RING <code>性能更好。 支持PF_RING ZC模式。</code></li>
<li>DPDK    <code>性能最好，对硬件有要求。</code></li>
</ul></div>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2021/07/31/txqueuelen.html">linux 设置网络接口发送队列长度</a>
      </h1>
    <p class="meta">
<time datetime="2021-07-31T01:54:28+08:00" pubdate>2021-07-31 01:54:28</time>      
    </p>
</header>

        <div class="entry-content"><h4>发送队列长度</h4>
<p>UDP发送频率过高可能会导致丢包，设置发送队列长度可以解决这类问题。
<code>https://www.cnblogs.com/liaokang/p/6003334.html</code></p>
<p>查询发送队列 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2021/07/31/txqueuelen.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/09/07/windows-vm.html">微软提供的windows系统虚拟机文件下载</a>
      </h1>
    <p class="meta">
<time datetime="2020-09-07T00:12:35+08:00" pubdate>2020-09-07 00:12:35</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code><span class="err">据说在虚拟机中使用这个</span><span class="p">,</span><span class="w"> </span><span class="err">流畅度比安装的版本快很多</span>
<span class="err">可以免费使用</span>
<span class="n">https</span><span class="p">:</span><span class="o">//</span><span class="n">developer</span><span class="o">.</span><span class="n">microsoft</span><span class="o">.</span><span class="n">com</span><span class="o">/</span><span class="n">en</span><span class="o">-</span><span class="n">us</span><span class="o">/</span><span class="n">microsoft</span><span class="o">-</span><span class="n">edge</span><span class="o">/</span><span class="n">tools</span><span class="o">/</span><span class="n">vms</span><span class="o">/</span>


<span class="err">下面这个是有</span><span class="n">win10开发环境 …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2020/09/07/windows-vm.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/08/24/openSUSE-coredump.html">openSUSE coredump文件</a>
      </h1>
    <p class="meta">
<time datetime="2020-08-24T12:40:41+08:00" pubdate>2020-08-24 12:40:41</time>      
    </p>
</header>

        <div class="entry-content"><p>openSUSE Leap 15.2 默认是不开启coredump的.</p>
<h6>开启方法</h6>
<ol>
<li>查看<code>ulimit -H -a</code> 和 <code>ulimit -S -a</code> core files是否均显示unlimited. 如果不是则修改</li>
<li>sudo zypper in systemd-coredump</li>
<li>reboot</li>
</ol>
<h6>使用方法</h6>
<ol>
<li>sudo …</li></ol></div>
            <footer>
                <a rel="full-article" href="/posts/2020/08/24/openSUSE-coredump.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/08/14/dpkg-disable-dialog.html">dpkg安装软件包禁用dialog对话框</a>
      </h1>
    <p class="meta">
<time datetime="2020-08-14T17:38:05+08:00" pubdate>2020-08-14 17:38:05</time>      
    </p>
</header>

        <div class="entry-content"><p>之前写了个脚本, 在后台自动安装某些dpkg软件包.  但是安装过程会卡住 (即使crontab运行的后台程序也会卡住). 分析原因发现是 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2020/08/14/dpkg-disable-dialog.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/08/05/openSUSE-zypper.html">openSUSE zypper</a>
      </h1>
    <p class="meta">
<time datetime="2020-08-05T13:24:13+08:00" pubdate>2020-08-05 13:24:13</time>      
    </p>
</header>

        <div class="entry-content"><ol>
<li>zypper 安装软件时候版本选择</li>
</ol>
<div class="highlight-custom"><pre><span></span><code>查看仓库中有firefox的哪些版本
sudo zypper se -s firefox

安装指定版本
sudo zypper in --oldpackage MozillaFirefox=78.0.1-lp152.2.5.1
</code></pre></div>

<ol>
<li>zypper 和 其他包 …</li></ol></div>
            <footer>
                <a rel="full-article" href="/posts/2020/08/05/openSUSE-zypper.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/07/26/arch-linux-samsung-arm-chromebook.html">在chromebook上安装archlinux</a>
      </h1>
    <p class="meta">
<time datetime="2020-07-26T22:56:00+08:00" pubdate>2020-07-26 22:56:00</time>      
    </p>
</header>

        <div class="entry-content"><ol>
<li>
<p>把安装到U盘的教程中的 /dev/sda 替换成 mmcblk0 即可把archlinux安装进入系统盘.</p>
</li>
<li>
<p>编辑 /etc/pacman.conf 文件, 添加 <code>IgnorePkg   = linux-armv7 linux-armv7-chromebook linux-firmware</code></p>
</li>
<li>
<p>参考https://calvin.me/arch-linux-samsung-arm-chromebook 修改亮 …</p></li></ol></div>
            <footer>
                <a rel="full-article" href="/posts/2020/07/26/arch-linux-samsung-arm-chromebook.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/07/20/openSUSE-upgrade.html">openSUSE Leap 系统升级</a>
      </h1>
    <p class="meta">
<time datetime="2020-07-20T23:38:50+08:00" pubdate>2020-07-20 23:38:50</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code><span class="c1"># 首先启用 repo-update 软件源</span>
zypper<span class="w"> </span>modifyrepo<span class="w"> </span>--enable<span class="w"> </span>repo-update

<span class="c1"># 然后更到最新</span>
zypper<span class="w"> </span>refresh
zypper<span class="w"> </span>update

<span class="c1"># 下面的命令建议在tty中执行.  Ctrl + Alt + F2</span>

<span class="c1"># 如果 /etc/zypp/repos.d/中定义的Leap 仓库 …</span></code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2020/07/20/openSUSE-upgrade.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/07/20/openSUSE-multimedia.html">openSUSE Leap & Tumbleweed 安装解码器</a>
      </h1>
    <p class="meta">
<time datetime="2020-07-20T23:15:46+08:00" pubdate>2020-07-20 23:15:46</time>      
    </p>
</header>

        <div class="entry-content"><p>添加全部packman仓库</p>
<div class="highlight-custom"><pre><span></span><code>sudo<span class="w"> </span>zypper<span class="w"> </span>ar<span class="w"> </span>-fc<span class="w"> </span><span class="s1">&#39;https://mirrors.tuna.tsinghua.edu.cn/packman/suse/openSUSE_Leap_$releasever&#39;</span><span class="w">            </span>packman

<span class="c1"># 将系统软件包切换到packman中的软件包(两者混用会导致各种问题)</span>
zypper …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2020/07/20/openSUSE-multimedia.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/07/01/phicomm-N1.html">斐讯N1刷机过程记录</a>
      </h1>
    <p class="meta">
<time datetime="2020-07-01T23:38:09+08:00" pubdate>2020-07-01 23:38:09</time>      
    </p>
</header>

        <div class="entry-content"><p><img alt="刷机" src="/posts/2020/07/01/phicomm-N1-flash.jpg"></p>
<p>去年买的N1盒子, 一直没时间折腾, 最近刚好需要作下载机用, 于是刷机, 顺便整理下步骤.</p>
<p>首先说下N1配置. 处理器Amlogic S905, 内存 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2020/07/01/phicomm-N1.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/04/24/inotify-tools.html">inotify-tools</a>
      </h1>
    <p class="meta">
<time datetime="2020-04-24T19:40:05+08:00" pubdate>2020-04-24 19:40:05</time>      
    </p>
</header>

        <div class="entry-content"><p>inotify-tools 可以用来监控文件系统的事件。inotify-tools提供两种工具，一是 inotifywait，它是用来监控文件或目录的变化，二是inotifywatch，它是用来统计文件系 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2020/04/24/inotify-tools.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/01/08/linux-nc.html">通过nc命令查看服务器端口和客户端能不能正常连接</a>
      </h1>
    <p class="meta">
<time datetime="2020-01-08T09:57:04+08:00" pubdate>2020-01-08 09:57:04</time>      
    </p>
</header>

        <div class="entry-content"><p>tcp</p>
<div class="highlight-custom"><pre><span></span><code>服务器
nc bind地址 监听端口

客户端
nc 服务器地址 服务器端口
</code></pre></div>

<p>udp <code>nc</code> 加上 <code>-u</code> 参数即可</p></div>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/01/07/laptop-router.html">笔记本把无线网络连接分享给网线</a>
      </h1>
    <p class="meta">
<time datetime="2020-01-07T22:11:18+08:00" pubdate>2020-01-07 22:11:18</time>      
    </p>
</header>

        <div class="entry-content"><p>笔记本把无线网络连接分享给网线.</p>
<p>首先如果笔记本开了NetworkManager服务, 建议在NetworkManager的配置中取消托管有线网络接口 eth0. (可选, 如果 …</p></div>
            <footer>
                <a rel="full-article" href="/posts/2020/01/07/laptop-router.html">Read On &crarr;</a>
            </footer>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2020/01/05/linux-improving-performance.html">Linux性能优化</a>
      </h1>
    <p class="meta">
<time datetime="2020-01-05T22:05:19+08:00" pubdate>2020-01-05 22:05:19</time>      
    </p>
</header>

        <div class="entry-content"><ol>
<li>挂载选项添加noatime</li>
<li>mitigations=off</li>
<li></li>
</ol></div>
  		</article>
  		<article>
<header>
      <h1 class="entry-title">
        <a href="/posts/2019/12/19/openSUSE-server-install-cinnamon.html">openSUSE Tumbleweed server 安装cinnamon桌面</a>
      </h1>
    <p class="meta">
<time datetime="2019-12-19T11:11:01+08:00" pubdate>2019-12-19 11:11:01</time>      
    </p>
</header>

        <div class="entry-content"><div class="highlight-custom"><pre><span></span><code>zypper<span class="w"> </span>refresh
zypper<span class="w"> </span>install<span class="w"> </span>cinnamon
zypper<span class="w"> </span>install<span class="w"> </span>lightdm
zypper<span class="w"> </span>install<span class="w"> </span>xorg-x11-server
zypper<span class="w"> </span>install<span class="w"> </span>xorg-x11-server-wayland
update-alternatives<span class="w"> </span>--list<span class="w"> </span>default-displaymanager
update-alternatives<span class="w"> </span>--config<span class="w"> </span>default-displaymanager<span class="w"> </span>选择lightdm
systemctl<span class="w"> </span>disable<span class="w"> </span>default.target<span class="w">  </span><span class="c1"># 或者删除 /etc/systemd/system/default.target</span>
ln<span class="w"> </span>-s<span class="w"> </span>/usr/lib/systemd/system/graphical.target<span class="w"> </span>/etc/systemd/system/default.target

zypper …</code></pre></div></div>
            <footer>
                <a rel="full-article" href="/posts/2019/12/19/openSUSE-server-install-cinnamon.html">Read On &crarr;</a>
            </footer>
  		</article>
<div class="pagination">
    <a class="prev" href="/index4.html">&larr; Older</a>

    <a class="next" href="/index2.html">Newer &rarr;</a>
  <br />
</div></div>

<aside class="sidebar">
<section>
  <h1>Recent Posts</h1>
  <ul id="recent_posts">
    <li class="post">
        <a href="/posts/2023/08/22/bash-conversion.html">bash进制转换</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/16/remap-caps-ctrl.html">在Linux下交换Ctrl与大写锁定键</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/15/learn-java.html">java入门精粹</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/04/tcl-expect.html">Tcl 和 expect教程</a>
    </li>
    <li class="post">
        <a href="/posts/2023/08/01/armbian-config-software.html">armbian-config 支持自动安装的软件</a>
    </li>
  </ul>
</section><section>
  <h1>Categories</h1>
    <ul id="recent_posts">
      <li><a href="/category/android.html">android (2)</a></li>
      <li><a href="/category/blog.html">blog (1)</a></li>
      <li><a href="/category/bootloader.html">bootloader (2)</a></li>
      <li><a href="/category/container.html">container (1)</a></li>
      <li><a href="/category/database.html">database (1)</a></li>
      <li><a href="/category/editor.html">editor (4)</a></li>
      <li><a href="/category/filesystem.html">filesystem (1)</a></li>
      <li><a href="/category/firefox.html">firefox (1)</a></li>
      <li><a href="/category/git.html">git (4)</a></li>
      <li><a href="/category/golang.html">golang (1)</a></li>
      <li><a href="/category/gu-piao.html">股票 (1)</a></li>
      <li><a href="/category/ide.html">IDE (1)</a></li>
      <li><a href="/category/interview.html">interview (1)</a></li>
      <li><a href="/category/linux.html">linux (51)</a></li>
      <li><a href="/category/network.html">network (7)</a></li>
      <li><a href="/category/nltk.html">nltk (2)</a></li>
      <li><a href="/category/notes.html">notes (1)</a></li>
      <li><a href="/category/other.html">other (1)</a></li>
      <li><a href="/category/programming.html">programming (10)</a></li>
      <li><a href="/category/python.html">python (1)</a></li>
      <li><a href="/category/software.html">software (1)</a></li>
      <li><a href="/category/stock.html">stock (1)</a></li>
      <li><a href="/category/storage.html">storage (2)</a></li>
      <li><a href="/category/vm.html">vm (1)</a></li>
      <li><a href="/category/web.html">web (4)</a></li>
      <li><a href="/category/windows.html">windows (1)</a></li>
      <li><a href="/category/xwindow.html">xwindow (1)</a></li>
  </ul>
</section>
<section>
  <h1>Tags</h1>
    <a href="/tag/linux.html">linux</a>,    <a href="/tag/bash.html">bash</a>,    <a href="/tag/xwindow.html">Xwindow</a>,    <a href="/tag/programming-language.html">programming-language</a>,    <a href="/tag/java.html">java</a>,    <a href="/tag/programming.html">programming</a>,    <a href="/tag/software.html">software</a>,    <a href="/tag/storage.html">storage</a>,    <a href="/tag/debug.html">debug</a>,    <a href="/tag/c.html">C</a>,    <a href="/tag/git.html">git</a>,    <a href="/tag/patch.html">patch</a>,    <a href="/tag/text.html">text</a>,    <a href="/tag/selenium.html">selenium</a>,    <a href="/tag/web.html">web</a>,    <a href="/tag/docker.html">docker</a>,    <a href="/tag/flatpak.html">flatpak</a>,    <a href="/tag/interview.html">interview</a>,    <a href="/tag/qt.html">Qt</a>,    <a href="/tag/opensuse.html">openSUSE</a>,    <a href="/tag/filesystem.html">filesystem</a>,    <a href="/tag/ide.html">IDE</a>,    <a href="/tag/glang.html">glang</a>,    <a href="/tag/xdg.html">xdg</a>,    <a href="/tag/network.html">network</a>,    <a href="/tag/raspberry.html">raspberry</a>,    <a href="/tag/vm.html">vm</a>,    <a href="/tag/windows.html">windows</a>,    <a href="/tag/gdb.html">gdb</a>,    <a href="/tag/debian.html">debian</a>,    <a href="/tag/archlinux.html">archlinux</a>,    <a href="/tag/phicomm.html">phicomm</a>,    <a href="/tag/kernel.html">kernel</a>,    <a href="/tag/ext4.html">ext4</a>,    <a href="/tag/server.html">server</a>,    <a href="/tag/stock.html">stock</a>,    <a href="/tag/shu.html">书</a>,    <a href="/tag/gu-piao.html">股票</a>,    <a href="/tag/python.html">python</a>,    <a href="/tag/nltk.html">nltk</a>,    <a href="/tag/command.html">command</a>,    <a href="/tag/shell.html">shell</a>,    <a href="/tag/terminal.html">terminal</a>,    <a href="/tag/other.html">other</a>,    <a href="/tag/wireless.html">wireless</a>,    <a href="/tag/android.html">android</a>,    <a href="/tag/gtk.html">gtk+</a>,    <a href="/tag/gnome.html">gnome</a>,    <a href="/tag/keyboard.html">keyboard</a>,    <a href="/tag/firefox.html">firefox</a>,    <a href="/tag/arch.html">arch</a>,    <a href="/tag/database.html">database</a>,    <a href="/tag/mysql.html">mysql</a>,    <a href="/tag/notes.html">notes</a>,    <a href="/tag/sysctl.html">sysctl</a>,    <a href="/tag/vim.html">vim</a>,    <a href="/tag/editor.html">editor</a>,    <a href="/tag/pelican.html">pelican</a>,    <a href="/tag/blog.html">blog</a>,    <a href="/tag/book.html">book</a>,    <a href="/tag/bootloader.html">bootloader</a></section>
    <section>
        <h1>Social</h1>
        <ul>
            <li><a href="https://github.com/zhangjiaxing" target="_blank">github</a></li>
            <li><a href="http://wpa.qq.com/msgrd?v=3&uin=347820393&site=qq&menu=yes" target="_blank">qq</a></li>
            <li><a href="http://www.writebug.cn" target="_blank">blog</a></li>
            <li><a href="http://gallery.writebug.cn" target="_blank">gallery</a></li>
        </ul>
    </section>
    <section>
        <h1>Blogroll</h1>
        <ul>
            <li><a href="http://getpelican.com/" target="_blank">Pelican</a></li>
        </ul>
    </section>

</aside>
    </div>
  </div>
  <footer role="contentinfo">
<p>
    Copyright &copy;  2013&ndash;2023  zhiliao &mdash;
  <span class="credit">Powered by <a href="http://getpelican.com">Pelican</a></span>
</p>  </footer>
</body>
</html>